package com.moli.iov.sys.model.dto.req;

import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import lombok.Data;

/**
 * <p>
 * 客户端信息
 * </p>
 *
 * @author zql
 * @since 2019/9/23 13:32
 */
@Data
public class ClientDetailsReqDto implements Serializable {


  private static final long serialVersionUID = 9067880183087948574L;

  public ClientDetailsReqDto() {
  }

  public ClientDetailsReqDto(Long companyId) {
    this.companyId = companyId;
  }

  public ClientDetailsReqDto(String appId, String secret) {
    this.appId = appId;
    this.secret = secret;
  }

  /**
   * 客户端标识(企业id HMAC-SHA256 加密后的值)
   */
  @NotEmpty(message = "用户凭证不能为空", groups = {GetClientDetails.class})
  private String appId;

  /**
   * 客户唯一凭证密钥
   */
  @NotEmpty(message = "用户秘钥不能为空", groups = {GetClientDetails.class})
  private String secret;

  /**
   * 企业id
   */
  private Long companyId;

  public interface GetClientDetails{}
}
